package com.gome.ocean.dao.gddl;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.gome.ocean.dao.model.gddl.ClusterBO;

/**
 * <p>
 * 标题:
 * </p>
 * <p>
 * 描述:
 * </p>
 * 
 * @作者 haqiaolong
 * @创建时间 2016-03-25 11:12:55
 * @版本 1.00
 * @修改记录 <pre>
 * 版本       修改人         修改时间         修改内容描述
 * ----------------------------------------
 * 
 * ----------------------------------------
 * </pre>
 */
@Repository("clusterDAO")
public interface ClusterDAO {

    int insertClusterBO(ClusterBO clusterBO);

    int removeClusterBOById(Long id);

    int updateCluster(ClusterBO clusterBO);

    ClusterBO findClusterBOById(Long id);

    List<ClusterBO> findClusterBOByName(@Param("name") String name, RowBounds rowBounds);

    List<Long> findAllClusterIds();

    List<ClusterBO> findAllClusterBOs();

    List<ClusterBO> findClusterBOs(RowBounds rowBounds);

    List<ClusterBO> findAllClusterBOsByProjects(@Param("projectNames") List<String> projectNames);

    List<Long> findAllCluserIdByProjectNames(@Param("projectNames") List<String> projectNames);
}
